﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ThuQuyCBManager.aspx.cs" Inherits="WebQuyPhong.Admin.ThuQuyCBManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
    <h3 class="panel-title"><b>Danh sách thu quỹ trong năm theo cán bộ</b></h3>
</div>
<div class="panel-body">
    <p>
       <span class="label-customer">Cán bộ : 
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator4" runat="server" ControlToValidate="dllCanBo" 
                Display="Dynamic" InitialValue="- Vui lòng Chọn -" ErrorMessage="Bạn chọn cán bộ cần thu!" ForeColor="Red">*</asp:RequiredFieldValidator>
       </span>
        <asp:DropDownList ID="dllCanBo" runat="server" Height="25px" 
            Width="135px">
        </asp:DropDownList>
        <span class="label-customer">Năm thu : 
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator1" runat="server" ControlToValidate="dllNam" 
                Display="Dynamic" InitialValue="- Vui lòng Chọn -" ErrorMessage="Bạn nhập năm cần xem!" ForeColor="Red">*</asp:RequiredFieldValidator>
        </span>
        <asp:DropDownList ID="dllNam" runat="server" Height="25px" 
            Width="135px">
        </asp:DropDownList>            
           
        <ItemTemplate>
            <asp:LinkButton ID="btnXem" runat="server" 
            CssClass="btn btn-info btn-small" onclick="btnXem_Click">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span> Xem
            </asp:LinkButton> 
         </ItemTemplate>
    </p>
    <a href="ThuQuyForm.aspx" class="btn btn-primary">
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Thêm mới
    </a>
    <asp:Label ID="lblMessage" runat="server" Text="" CssClass="alert alert-danger" role="alert" Visible="False"></asp:Label>
    <br /><br />
     <asp:GridView ID="GridView1" runat="server" 
          CssClass="table table-hover table-bordered"  AllowPaging="True" PageSize="8"
        AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand" 
          onpageindexchanging="GridView1_PageIndexChanging">
        <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
        <Columns>
            <asp:BoundField DataField="IDTHU" HeaderText="Mã thu">
            </asp:BoundField>
            <asp:BoundField DataField="THANGTHU" HeaderText="Tháng thu" />
            <asp:BoundField DataField="SOTIENTHU" HeaderText="Số tiền thu" />
            <asp:BoundField DataField="NTNTHU" HeaderText="Ngày thu" />
            <asp:BoundField DataField="GHICHU" HeaderText="Ghi chú" />
            <asp:TemplateField HeaderText="#">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" 
                        CommandArgument='<%# Eval("IDTHU") %>' CommandName="cmdDelete" 
                        OnClientClick="return confirm('Bạn có muốn xóa nội dung thu này không?');" 
                        CssClass="btn btn-warning">
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Xóa
                        </asp:LinkButton> 
                    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="btn btn-danger"
                        NavigateUrl='<%# "THuQuyForm.aspx?IDTHU=" + Eval("IDTHU") %>'>
                        <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Sửa
                        </asp:HyperLink>
                </ItemTemplate>
                <ItemStyle CssClass="col-action" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        </div>
    </div>
</div>
</asp:Content>
